<template>
  <div>
    <!-- v2 -->
    <index1 v-if="isQyyy" />
    <!-- v3 -->
    <index2 v-else />
  </div>
</template>
<script>
import index1 from "@/components/index/index1.vue";
import index2 from "@/components/index/index2.vue";
import { mapState } from "vuex";
export default {
  data() {
    return {};
  },
  computed: {
    ...mapState({
      plugins: (state) => state.plugin,
    }),
    isQyyy() {
      if (this.plugins.qyyy && this.plugins.qyyy.is_open == 1) {
        return true;
      }
      return false;
    },
  },
  components: {
    index1,
    index2,
  },
  methods: {},
};
</script>
<style lang="less" scoped>
</style>
